package com.itcat.service;

import com.itcat.mysql.pojo.UmsAdmin;
import com.itcat.mysql.pojo.UmsResource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * [一句话描述该类的功能]
 *
 * @author : [Cr Mr]
 * @version : [v1.0]
 * @date : [2022/3/30 16:16]
 */
@Service
public interface AdminCacheService {
    UmsAdmin getAdmin(String username);

    void setAdmin(UmsAdmin admin);

    List<UmsResource> getResourceList(Long adminId);

    void setResourceList(Long adminId, List<UmsResource> resourceList);

    void removeAdmin(UmsAdmin admin);
}
